$.ajax({
    url: "starServlet",
    dataType: "json",
    type: "post",
    success: function (stars) {
        for (var i = 0; i < stars.length; i++) {
            var name = stars[i].name;
            var $b = "<option>"+name+"</option>";
            $("select[name=star]").append($b);
        }
    }
});

$.ajax({
    url: "equipServlet",
    dataType: "json",
    type: "post",
    success: function (equips) {
        for (var i = 0; i < equips.length; i++) {
            var name = equips[i].name;
            var $b = "<option>"+name+"</option>";
            $("select[name=equipment]").append($b);
        }
    }
});

$.ajax({
    url: "attributeServlet",
    dataType: "json",
    type: "post",
    success: function (attributes) {
        for (var i = 0; i < attributes.length; i++) {
            var name = attributes[i].name;
            var $b = "<option>"+name+"</option>";
            $("select[name=attribute]").append($b);
        }
    }
});

$.ajax({
    url: "obtainServlet",
    dataType: "json",
    type: "post",
    success: function (obtains) {
        for (var i = 0; i < obtains.length; i++) {
            var name = obtains[i].name;
            var $b = "<option>"+name+"</option>";
            $("select[name=obtain]").append($b);
        }
    }
});